'use client' import { FC, PropsWithChildren } from "react"; import { useRouter } from "@/i18n"; import { useTranslations } from "next-intl"; import './page.scss' interface Props { } const App: FC> = (props) =>{ const t = useTranslations("ReferralsPage") const router:any = useRouter() const goPage = (path = '')=>{ if(path){ if(path === 'home'){ router.replace('/') return } console.log(router); router.replace(`/affiliate/${path}`) return } router.back() } return (
goPage()}>
{t("Afiliado")} - {t("Ganhe")} goPage('home')}>
goPage('summary')}> {t("PAINEL")}
goPage('referrals')}> {t("REFERÊNCIAS")}
goPage('report')}> {t("RELATÓRIO")}
goPage('payments')}> {t("PAGAMENTOS")}
goPage('faq')}> {t("FAQ")}
{t("TUTORIAL")}
  • #
    {t("Conta")}
    {t("Apostas")}({t("R$")})
    {t("ApostaEquipe")}({t("R$")})
    {t("Comissão")}
{t("Opa")}
{t("R$")} 0 {t("Aposta")}
{t("R$")} 0 {t("Comissão")}
{/* 日历 */}
) } export default App